import request from '@/utils/request'
export function queryBackendClassification() {
  return request({
    url: '/base/backend-classification/get-list',
    method: 'get'
  })
}

export function saveBackendClassification(data) {
  return request({
    url: '/base/backend-classification/save',
    method: 'post',
    data
  })
}

export function deleteBackendClassification(data) {
  return request({
    url: '/base/backend-classification/delete',
    method: 'post',
    data
  })
}

export function updateBackendClassification(data) {
  return request({
    url: '/base/backend-classification/update',
    method: 'post',
    data
  })
}

export function updateStatus(data) {
  return request({
    url: '/base/backend-classification/update-status',
    method: 'post',
    data
  })
}

export function getCategoryList(data) {
  return request({
    url: '/v1/base/base-back-columns/get-category-list',
    method: 'POST',
    data
  })
}

// 分类详情
export function getBaseBackColumnsdetails(data) {
  return request({
    url: '/v1/base/base-back-columns/details',
    method: 'POST',
    data
  })
}

// 分类详情
export function queryEbayBaseCategory(data) {
  return request({
    baseURL: window.APP_GETEWAY.public,
    url: '/api/public/bypass/queryEbayBaseCategory',
    method: 'POST',
    data
  })
}

// 分类父级
export function batchSearchCategoryRoad(data) {
  return request({
    baseURL: window.APP_GETEWAY.public,
    url: '/api/public/bypass/batchSearchCategoryRoad',
    method: 'POST',
    data
  })
}

// 关联平台分类
export function relationPlatform(data) {
  return request({
    url: '/v1/base/base-back-columns/relation-platform',
    method: 'POST',
    data
  })
}

export function updateSort(data) {
  return request({
    url: '/base/backend-classification/update-sort',
    method: 'post',
    data
  })
}

